|
Eclipse Platform Pre-release 3.0 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.ui.keys.SWTKeySupport
A utility class for converting SWT events into key strokes.
Method Summary | |
static KeyStroke |
convertAcceleratorToKeyStroke(int accelerator)
Given an SWT accelerator value, provide the corresponding key stroke. |
static int |
convertEventToModifiedAccelerator(Event event)
Converts the given event into an SWT accelerator value -- considering the modified character with the shift modifier. |
static int |
convertEventToUnmodifiedAccelerator(Event event)
Converts the given event into an SWT accelerator value -- considering the unmodified character with all modifier keys. |
static int |
convertEventToUnmodifiedAccelerator(KeyEvent event)
Converts the given event into an SWT accelerator value -- considering the unmodified character with all modifier keys. |
static int |
convertEventToUnshiftedModifiedAccelerator(Event event)
Converts the given event into an SWT accelerator value -- considering the modified character without the shift modifier. |
static int |
convertKeyStrokeToAccelerator(KeyStroke keyStroke)
Given a key stroke, this method provides the equivalent SWT accelerator value. |
static IKeyFormatter |
getKeyFormatterForPlatform()
Provides an instance of IKeyFormatter appropriate for the
current instance. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
public static KeyStroke convertAcceleratorToKeyStroke(int accelerator)
accelerator
- The accelerator to convert; should be a valid SWT accelerator
value.
null
.public static int convertEventToModifiedAccelerator(Event event)
event
- The event to be converted; must not be null
.
public static int convertEventToUnmodifiedAccelerator(Event event)
event
- The event to be converted; must not be null
.
public static int convertEventToUnmodifiedAccelerator(KeyEvent event)
event
- The event to be converted; must not be null
.
public static int convertEventToUnshiftedModifiedAccelerator(Event event)
convertEventToUnmodifiedAccelerator
event
- The event to be converted; must not be null
.
public static final int convertKeyStrokeToAccelerator(KeyStroke keyStroke)
convertAcceleratorToKeyStroke
.
keyStroke
- The key stroke to convert; must not be null
.
public static IKeyFormatter getKeyFormatterForPlatform()
IKeyFormatter
appropriate for the
current instance.
IKeyFormatter
appropriate for the
current instance. never null
.
|
Eclipse Platform Pre-release 3.0 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |